<!DOCTYPE html>
<html ng-app="loginApp">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>摩梯旅行-后台登录</title>
    <link rel="icon" href="favicon.ico" type="images/x-icon">

    <!-- build:css css/login.min.css -->
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/AdminLTE.min.css">
    <link rel="stylesheet" href="css/skin-blue.min.css">
    <link rel="stylesheet" href="css/style.css">
    <!-- endbuild -->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition login-page">
<div class="modal fade" id="tip-modal">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-body"></div>
        </div>
    </div>
</div>

<div class="login-box">
    <div class="login-logo"><img src="http://cdn.motitravel.com/h5/webresource/images/logo-text.png" height="80" /></div>
    <div class="login-box-body">
        <form ng-controller="loginCtrl" ng-submit="loginForm()" name="login_form" novalidate="novalidate">
            <div class="form-group has-feedback" ng-class="{'has-success': login_form.username.$dirty && login_form.username.$valid && !login_form.username.$focused, 'has-error': login_form.username.$dirty && login_form.username.$invalid && !login_form.username.$focused}">
                <input type="text" class="form-control" placeholder="用户名" name="username" ng-model="user.username" ng-focus required />
                <span class="fa fa-user form-control-feedback"></span>
                <label class="error-tip" ng-show="login_form.username.$dirty && login_form.username.$invalid && !login_form.username.$focused"><i class="fa fa-close small-pr"></i>请输入用户名</label>
            </div>
            <div class="form-group has-feedback" ng-class="{'has-success': login_form.password.$dirty && login_form.password.$valid && !login_form.password.$focused, 'has-error': login_form.password.$dirty && login_form.password.$invalid && !login_form.password.$focused}">
                <input type="password" class="form-control" placeholder="密码" name="password" ng-model="user.password" ng-focus required />
                <span class="fa fa-lock form-control-feedback"></span>
                <label class="error-tip" ng-show="login_form.password.$dirty && login_form.password.$invalid && !login_form.password.$focused"><i class="fa fa-close small-pr"></i>请输入密码</label>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <button type="submit" class="btn btn-primary btn-block btn-flat" ng-disabled="login_form.$invalid">登 录</button>
                </div>
            </div>
        </form>
    </div>
</div>

<!-- build:js js/login.plugin.js -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-route/angular-route.min.js"></script>
<script src="bower_components/lodash/lodash.min.js"></script>
<script src="bower_components/restangular/dist/restangular.min.js"></script>
<!-- endbuild -->

<!-- build:js js/login.min.js -->
<script src="js/constant.js"></script>
<script src="js/common.js"></script>
<script src="js/directive.js"></script>
<script src="js/directives/modalDirective.js"></script>
<script src="js/services/loginService.js"></script>
<script src="js/controllers/loginCtrl.js"></script>
<!-- endbuild -->
</body>
</html>